import 'package:flutter/material.dart';
import 'package:flutter_changdian_football/widget/screenutil/custom_screenutil.dart';

/// 加载失败
class CustomError extends StatelessWidget {
  const CustomError({super.key, this.text});
  final String? text;

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Image.asset('assets/images/img_kzt_01.png'),

          SizedBox(height: 20.w,),

          SizedBox(
            child: Text(text ?? "系统繁忙，请稍后再试!", style: TextStyle(fontSize: 14.sp, color: Colors.grey),),
          )
        ],
      ),
    );
  }
}